﻿using Blog190311.Models.DAL;
using Blog190311.Models.DBModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Blog190311.Controllers
{
    public class MessageController : Controller
    {
        // GET: Message
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult SaveMessage(Message message)
        {
            MessageService messageService = new MessageService();
            int num = messageService.SaveMessage(message);
            return Content(num.ToString());
        }
    }
}